var Mock = require('mockjs')

module.exports = function() {
    var data = { navItems: [] }
    var template = {
        "code|1-3":"profile",
        "children|1-3":[1,2,3],
        "icon|1":"icon icon-resize",
        "name|1-3":"菜单",
        "pid|1-100":22,
        "id|+1":1,
        "title|1-3":"菜单",
        "type|1-3":3,
        "params|1-3":"abc",
        "url|1":"/datex/index/index.jsp"
    }
    for (var i = 0; i < 7; i++) {
        data.navItems.push(
            Mock.mock(template)
        )
    }
    return data
}